home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Visual Cafe Pro v1.0 / TUTORIAL.BIN / Projection.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-01-30  |  5.0 KB  |  161 lines

  1. package symantec.itools.db.pro;
  2.  
  3. import java.io.InputStream;
  4. import symjava.lang.Bignum;
  5. import symjava.sql.Date;
  6. import symjava.sql.SQLException;
  7. import symjava.sql.Time;
  8. import symjava.sql.Timestamp;
  9.  
  10. public class Projection implements ProjLink {
  11.    ProjBinder _bind = null;
  12.  
  13.    public void init(ProjBinder data) {
  14.       this._bind = data;
  15.    }
  16.  
  17.    public void notifyDataChange(ProjBinder data) {
  18.       this._bind = data;
  19.    }
  20.  
  21.    public boolean notifySetData(ProjBinder data) throws SQLException {
  22.       return true;
  23.    }
  24.  
  25.    public boolean isNull() throws SQLException {
  26.       return this._bind.isNull();
  27.    }
  28.  
  29.    public String getString() throws SQLException {
  30.       return this._bind.getString();
  31.    }
  32.  
  33.    public boolean getBoolean() throws SQLException {
  34.       return this._bind.getBoolean();
  35.    }
  36.  
  37.    public byte getByte() throws SQLException {
  38.       return this._bind.getByte();
  39.    }
  40.  
  41.    public short getShort() throws SQLException {
  42.       return this._bind.getShort();
  43.    }
  44.  
  45.    public int getInt() throws SQLException {
  46.       return this._bind.getInt();
  47.    }
  48.  
  49.    public long getLong() throws SQLException {
  50.       return this._bind.getLong();
  51.    }
  52.  
  53.    public float getFloat() throws SQLException {
  54.       return this._bind.getFloat();
  55.    }
  56.  
  57.    public double getDouble() throws SQLException {
  58.       return this._bind.getDouble();
  59.    }
  60.  
  61.    public Bignum getBignum(int scale) throws SQLException {
  62.       return this._bind.getBignum(scale);
  63.    }
  64.  
  65.    public byte[] getBytes() throws SQLException {
  66.       return this._bind.getBytes();
  67.    }
  68.  
  69.    public Date getDate() throws SQLException {
  70.       return this._bind.getDate();
  71.    }
  72.  
  73.    public Time getTime() throws SQLException {
  74.       return this._bind.getTime();
  75.    }
  76.  
  77.    public Timestamp getTimestamp() throws SQLException {
  78.       return this._bind.getTimestamp();
  79.    }
  80.  
  81.    public InputStream getAsciiStream() throws SQLException {
  82.       return this._bind.getAsciiStream();
  83.    }
  84.  
  85.    public InputStream getUnicodeStream() throws SQLException {
  86.       return this._bind.getUnicodeStream();
  87.    }
  88.  
  89.    public InputStream getBinaryStream() throws SQLException {
  90.       return this._bind.getBinaryStream();
  91.    }
  92.  
  93.    public void setNull(int sqlType) throws SQLException {
  94.       this._bind.setNull(sqlType);
  95.    }
  96.  
  97.    public void setBoolean(boolean x) throws SQLException {
  98.       this._bind.setBoolean(x);
  99.    }
  100.  
  101.    public void setByte(byte x) throws SQLException {
  102.       this._bind.setByte(x);
  103.    }
  104.  
  105.    public void setShort(short x) throws SQLException {
  106.       this._bind.setShort(x);
  107.    }
  108.  
  109.    public void setInt(int x) throws SQLException {
  110.       this._bind.setInt(x);
  111.    }
  112.  
  113.    public void setLong(long x) throws SQLException {
  114.       this._bind.setLong(x);
  115.    }
  116.  
  117.    public void setFloat(float x) throws SQLException {
  118.       this._bind.setFloat(x);
  119.    }
  120.  
  121.    public void setDouble(double x) throws SQLException {
  122.       this._bind.setDouble(x);
  123.    }
  124.  
  125.    public void setBignum(Bignum x) throws SQLException {
  126.       this._bind.setBignum(x);
  127.    }
  128.  
  129.    public void setString(String x) throws SQLException {
  130.       this._bind.setString(x);
  131.    }
  132.  
  133.    public void setBytes(byte[] x) throws SQLException {
  134.       this._bind.setBytes(x);
  135.    }
  136.  
  137.    public void setDate(Date x) throws SQLException {
  138.       this._bind.setDate(x);
  139.    }
  140.  
  141.    public void setTime(Time x) throws SQLException {
  142.       this._bind.setTime(x);
  143.    }
  144.  
  145.    public void setTimestamp(Timestamp x) throws SQLException {
  146.       this._bind.setTimestamp(x);
  147.    }
  148.  
  149.    public void setAsciiStream(InputStream x, int length) throws SQLException {
  150.       this._bind.setAsciiStream(x, length);
  151.    }
  152.  
  153.    public void setUnicodeStream(InputStream x, int length) throws SQLException {
  154.       this._bind.setUnicodeStream(x, length);
  155.    }
  156.  
  157.    public void setBinaryStream(InputStream x, int length) throws SQLException {
  158.       this._bind.setBinaryStream(x, length);
  159.    }
  160. }
  161.